<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet">
<title>请假修改</title>
</head>
<body>
<div class="container-fluid" style="padding-left:2px;padding-right:2px;">
	<ol class="breadcrumb" style="margin-bottom:5px;">
	  <li>请假系统</li>
	  <li>申请请假</li>
	  <li class="active">修改</li>
	</ol>
	<form action="LeaveDoUpd.do?qj_id=${Leave.qj_id}"  method="post" style="padding-left:300px"> 
			<div class="form-group">
				<label for="qj_id">请假编号</label>
				<input type="text" class="form-control" id="qj_id" name="qj_id" value="${Leave.qj_id}"  readonly="readonly" style="width:300px">
			</div>
			<div class="form-group">
			    <label for="qj_type">请假类型</label>
			    <input type="radio" name="qj_type" value="病假" ${Leave.qj_type eq '病假'?'checked':''} checked="checked"/>病假
				<input type="radio" name="qj_type" value="事假" ${Leave.qj_type eq '事假'?'checked':''} />事假
				<input type="radio" name="qj_type" value="其它" ${Leave.qj_type eq '其它'?'checked':''} />其它 
		  </div>
		  <div class="form-group">
			    <label for="qj_reason">请假原因</label>
			    <textarea class="form-control" id="qj_reason" name="qj_reason"  style="width:300px">${Leave.qj_reason}</textarea>
		  </div>
		  <div class="form-group" >
			    <label for="qj_time">请假时间</label>
			    <input type="date" class="form-control" id="qj_time" name="qj_time" value="<f:formatDate value="${Leave.qj_time}" pattern="yyyy-MM-dd"/>" style="width:300px">
		  </div>
		  <div class="form-group">
			    <label for="qj_days">请假天数</label>
			    <input type="text" class="form-control" id="qj_days" name="qj_days" value="${Leave.qj_days}" style="width:300px">
		  </div>
	  <button type="submit" class="btn btn-default" id="bt1">提交</button>
	</form>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery-3.3.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
	document.getElementById("bt1").onclick=function(){
		return confirm("你确定要修改该请假申请吗？想好了哦！");
}
</script>
</body>
</html>